import { baseUrl } from './baseUrl';
import request from '@/utils/request';

//人行道养护上报
export async function queryRXDList(params) {
  return request(`${baseUrl}/Municipal/GetMunicipalRXDList`, {
    method: 'POST',
    data: params,
  });
}

export async function addRXD(params) {
  return request(`${baseUrl}/Municipal/AddRXD`, {
    method: 'POST',
    data: params,
  });
}

export async function removeRXD(params) {
  return request(`${baseUrl}/Municipal/RemoveRXD`, {
    method: 'POST',
    data: params,
  });
}

export async function getRXD(params) {
  return request(`${baseUrl}/Municipal/GetRXD`, {
    method: 'POST',
    data: params,
  });
}

export async function editRXD(params) {
  return request(`${baseUrl}/Municipal/EditRXD`, {
    method: 'POST',
    data: params,
  });
}

export async function rollbackRXD(params) {
  return request(`${baseUrl}/Municipal/RollbackRXD`, {
    method: 'POST',
    data: params,
  });
}

//车行道养护上报
export async function queryCXDList(params) {
  return request(`${baseUrl}/Municipal/GetMunicipalCXDList`, {
    method: 'POST',
    data: params,
  });
}

export async function addCXD(params) {
  return request(`${baseUrl}/Municipal/AddCXD`, {
    method: 'POST',
    data: params,
  });
}

export async function removeCXD(params) {
  return request(`${baseUrl}/Municipal/RemoveCXD`, {
    method: 'POST',
    data: params,
  });
}

export async function getCXD(params) {
  return request(`${baseUrl}/Municipal/GetCXD`, {
    method: 'POST',
    data: params,
  });
}

export async function editCXD(params) {
  return request(`${baseUrl}/Municipal/EditCXD`, {
    method: 'POST',
    data: params,
  });
}

export async function rollbackCXD(params) {
  return request(`${baseUrl}/Municipal/RollbackCXD`, {
    method: 'POST',
    data: params,
  });
}

//雨水井盖养护上报
export async function queryYSJGList(params) {
  return request(`${baseUrl}/Municipal/GetMunicipalYSJGList`, {
    method: 'POST',
    data: params,
  });
}

export async function addYSJG(params) {
  return request(`${baseUrl}/Municipal/AddYSJG`, {
    method: 'POST',
    data: params,
  });
}

export async function removeYSJG(params) {
  return request(`${baseUrl}/Municipal/RemoveYSJG`, {
    method: 'POST',
    data: params,
  });
}

export async function getYSJG(params) {
  return request(`${baseUrl}/Municipal/GetYSJG`, {
    method: 'POST',
    data: params,
  });
}

export async function editYSJG(params) {
  return request(`${baseUrl}/Municipal/EditYSJG`, {
    method: 'POST',
    data: params,
  });
}

export async function rollbackYSJG(params) {
  return request(`${baseUrl}/Municipal/RollbackYSJG`, {
    method: 'POST',
    data: params,
  });
}

//桥梁养护上报
export async function queryQLList(params) {
  return request(`${baseUrl}/Municipal/GetMunicipalQLList`, {
    method: 'POST',
    data: params,
  });
}

export async function addQL(params) {
  return request(`${baseUrl}/Municipal/AddQL`, {
    method: 'POST',
    data: params,
  });
}

export async function removeQL(params) {
  return request(`${baseUrl}/Municipal/RemoveQL`, {
    method: 'POST',
    data: params,
  });
}

export async function getQL(params) {
  return request(`${baseUrl}/Municipal/GetQL`, {
    method: 'POST',
    data: params,
  });
}

export async function editQL(params) {
  return request(`${baseUrl}/Municipal/EditQL`, {
    method: 'POST',
    data: params,
  });
}

export async function getBridgeFixedItem(params) {
  return request(`${baseUrl}/Municipal/GetBridgeFixedItem`, {
    method: 'POST',
    data: params,
  });
}

export async function rollbackQL(params) {
  return request(`${baseUrl}/Municipal/RollbackQL`, {
    method: 'POST',
    data: params,
  });
}

//管道养护计划
export async function queryPipesList(params) {
  return request(`${baseUrl}/Municipal/GetMunicipalPipes`, {
    method: 'POST',
    data: params,
  });
}

export async function addPipes(params) {
  return request(`${baseUrl}/Municipal/AddPipes`, {
    method: 'POST',
    data: params,
  });
}

export async function removePipes(params) {
  return request(`${baseUrl}/Municipal/RemovePipes`, {
    method: 'POST',
    data: params,
  });
}

export async function getPipes(params) {
  return request(`${baseUrl}/Municipal/GetPipes`, {
    method: 'POST',
    data: params,
  });
}

export async function editPipes(params) {
  return request(`${baseUrl}/Municipal/EditPipes`, {
    method: 'POST',
    data: params,
  });
}

export async function rollbackPipes(params) {
  return request(`${baseUrl}/Municipal/RollbackPipes`, {
    method: 'POST',
    data: params,
  });
}

//设施维修
export async function getMaintainNodeList(params) {
  return request(`${baseUrl}/MunicipalEquipemnt/GetMaintainNodeList`, {
    method: 'POST',
    data: params,
  });
}

export async function getEquipmentList(params) {
  return request(`${baseUrl}/MunicipalEquipemnt/GetEquipmentList`, {
    method: 'POST',
    data: params,
  });
}
export async function DeleteEquipment(params) {
  return request(`${baseUrl}/MunicipalEquipemnt/Delete`, {
    method: 'POST',
    data: params,
  });
}
export async function AddEquipment(params) {
  return request(`${baseUrl}/MunicipalEquipemnt/Add`, {
    method: 'POST',
    data: params,
  });
}
export async function EditEquipment(params) {
  return request(`${baseUrl}/MunicipalEquipemnt/Edit`, {
    method: 'POST',
    data: params,
  });
}

/* 养护管理 */

// 获取养护单位
export async function GetCompany(params) {
  return request(`${baseUrl}/Problem/GetCompany`, {
    method: 'POST',
    data: params,
  });
}

// 获取问题类型-大类
export async function GetClass(params) {
  return request(`${baseUrl}/Problem/GetClass`, {
    method: 'POST',
    data: params,
  });
}

// 获取问题类型-小类
export async function GetZClass(params) {
  return request(`${baseUrl}/Problem/GetZClass`, {
    method: 'POST',
    data: params,
  });
}

// 上报来源
export async function ReportSource(params) {
  return request(`${baseUrl}/Config/GetSourceProblem`, {
    method: 'POST',
    data: params,
  });
}

// 养护管理-查询
export async function GetQueryProblem(params) {
  return request(`${baseUrl}/Problem/GetQueryProblem`, {
    method: 'POST',
    data: params,
  });
}
// 养护管理-编辑
export async function Edit(params) {
  return request(`${baseUrl}/Problem/Edit`, {
    method: 'POST',
    data: params,
  });
}
// 养护管理-删除
export async function Delete(params) {
  return request(`${baseUrl}/Problem/Deltele`, {
    method: 'POST',
    data: params,
  });
}
// 养护管理-结案
export async function CloseProblem(params) {
  return request(`${baseUrl}/Problem/CloseProblem`, {
    method: 'POST',
    data: params,
  });
}
// 分派处理--市政
export async function AssignProblem(params) {
  return request(`${baseUrl}/Problem/AssignProblem`, {
    method: 'POST',
    data: params,
  });
}

// 获取照片
export async function GetMediafiles(params) {
  return request(`${baseUrl}/Problem/GetMediafiles`, {
    method: 'POST',
    data: params,
  });
}

/* 数据上报 */

//一路一表-数据条目查询
export async function GetQueryModelData(params) {
  return request(`${baseUrl}/RoadMonthReport/GetQueryModelData`, {
    method: 'POST',
    data: params,
  });
}
//一路一表-增加数据
export async function AddRoadMonth(params) {
  return request(`${baseUrl}/RoadMonthReport/Add`, {
    method: 'POST',
    data: params,
  });
}
//一路一表-编辑数据
export async function EditRoadMonth(params) {
  return request(`${baseUrl}/RoadMonthReport/Edit`, {
    method: 'POST',
    data: params,
  });
}
//一路一表-删除数据
export async function DelteleRoadMonth(params) {
  return request(`${baseUrl}/RoadMonthReport/Deltele`, {
    method: 'POST',
    data: params,
  });
}
//一路一表-数据回退
export async function EditRollback(params) {
  return request(`${baseUrl}/RoadMonthReport/EditRollback`, {
    method: 'POST',
    data: params,
  });
}

//一桥一表-数据条目查询
export async function yqybGetQueryModelData(params) {
  return request(`${baseUrl}/BridgeMonthReport/GetQueryModelData`, {
    method: 'POST',
    data: params,
  });
}
//一桥一表-增加数据
export async function yqybAddRoadMonth(params) {
  return request(`${baseUrl}/BridgeMonthReport/Add`, {
    method: 'POST',
    data: params,
  });
}
//一桥一表-编辑数据
export async function yqybEditRoadMonth(params) {
  return request(`${baseUrl}/BridgeMonthReport/Edit`, {
    method: 'POST',
    data: params,
  });
}
//一桥一表-删除数据
export async function yqybDelteleRoadMonth(params) {
  return request(`${baseUrl}/BridgeMonthReport/Deltele`, {
    method: 'POST',
    data: params,
  });
}
//一桥一表-数据回退
export async function yqybEditRollback(params) {
  return request(`${baseUrl}/BridgeMonthReport/EditRollback`, {
    method: 'POST',
    data: params,
  });
}

/* 统计分析 */

//一路一表-统计汇总查询
export async function GetQueryData(params) {
  return request(`${baseUrl}/RoadMonthReport/GetQueryData`, {
    method: 'POST',
    data: params,
  });
}

//一桥一表-统计汇总查询
export async function yqybGetQueryData(params) {
  return request(`${baseUrl}/BridgeMonthReport/GetQueryData`, {
    method: 'POST',
    data: params,
  });
}

/* 考核评价 */

//获取模板

export async function GetTemplate(params) {
  return request(`${baseUrl}/Check/GetTemplate`, {
    method: 'POST',
    data: params,
  });
}
//新增
export async function AddOneCheck(params) {
  return request(`${baseUrl}/Check/Add`, {
    method: 'POST',
    data: params,
  });
}
//列表
export async function GetAssessList(params) {
  return request(`${baseUrl}/Check/GetCheckedForAVG`, {
    method: 'POST',
    data: params,
  });
}
//列表
export async function GetCheckedCompany(params) {
  return request(`${baseUrl}/Check/GetCheckedCompany`, {
    method: 'POST',
    data: params,
  });
}
//列表
export async function GetGetDetailData(params) {
  return request(`${baseUrl}/Check/GetDetailData`, {
    method: 'POST',
    data: params,
  });
}
//列表
export async function DeleteDetailData(params) {
  return request(`${baseUrl}/Check/Delete`, {
    method: 'POST',
    data: params,
  });
}
export async function EditDetailData(params) {
  return request(`${baseUrl}/Check/Edit`, {
    method: 'POST',
    data: params,
  });
}
export async function GetCheckfiles(params) {
  return request(`${baseUrl}/Check/GetCheckfiles`, {
    method: 'POST',
    data: params,
  });
}
export async function GetCheckDownloadFile(params) {
  return request(`${baseUrl}/Check/DownloadFile`, {
    method: 'POST',
    data: params,
  });
}
export async function DeleteFile(params) {
  return request(`${baseUrl}/Check/DeleteFile`, {
    method: 'POST',
    data: params,
  });
}
/* 应急管理 */
export async function EmergencyQueryPerson(params) {
  return request(`${baseUrl}/Emergency/QueryPerson`, {
    method: 'POST',
    data: params,
  });
}
export async function EmergencyAddPerson(params) {
  return request(`${baseUrl}/Emergency/AddPerson`, {
    method: 'POST',
    data: params,
  });
}
export async function EmergencyEditPerson(params) {
  return request(`${baseUrl}/Emergency/EditPerson`, {
    method: 'POST',
    data: params,
  });
}
export async function EmergencyDeletePerson(params) {
  return request(`${baseUrl}/Emergency/DeletePerson`, {
    method: 'POST',
    data: params,
  });
}
export async function EmergencyQueryPersonByID(params) {
  return request(`${baseUrl}/Emergency/QueryPersonByID`, {
    method: 'POST',
    data: params,
  });
}
export async function EmergencyCommitStatus(params) {
  return request(`${baseUrl}/Emergency/CommitStatus`, {
    method: 'POST',
    data: params,
  });
}
export async function EmergencyQueryPersonDetail(params) {
  return request(`${baseUrl}/Emergency/QueryPersonDetail`, {
    method: 'POST',
    data: params,
  });
}
export async function EmergencyAddPersonDetail(params) {
  return request(`${baseUrl}/Emergency/AddPersonDetail`, {
    method: 'POST',
    data: params,
  });
}
export async function EmergencyDeletePersonDetail(params) {
  return request(`${baseUrl}/Emergency/DeletePersonDetail`, {
    method: 'POST',
    data: params,
  });
}
export async function EmergencyEditPersonDetail(params) {
  return request(`${baseUrl}/Emergency/EditPersonDetail`, {
    method: 'POST',
    data: params,
  });
}
/*管道一路一表 */

export async function SewerGetQueryModelData(params) {
  return request(`${baseUrl}/SewerMonthReport/GetQueryModelData`, {
    method: 'POST',
    data: params,
  });
}
export async function SewerGetQueryData(params) {
  return request(`${baseUrl}/SewerMonthReport/GetQueryData`, {
    method: 'POST',
    data: params,
  });
}
export async function SewerAddData(params) {
  return request(`${baseUrl}/SewerMonthReport/Add`, {
    method: 'POST',
    data: params,
  });
}
export async function SewerEditData(params) {
  return request(`${baseUrl}/SewerMonthReport/Edit`, {
    method: 'POST',
    data: params,
  });
}

export async function SewerEditRollback(params) {
  return request(`${baseUrl}/SewerMonthReport/EditRollback`, {
    method: 'POST',
    data: params,
  });
}
export async function SewerDelteleData(params) {
  return request(`${baseUrl}/SewerMonthReport/Deltele`, {
    method: 'POST',
    data: params,
  });
}
/* 应急管理 /装备*/
export async function EmergencyQueryEquip(params) {
  return request(`${baseUrl}/Emergency/QueryEquip`, {
    method: 'POST',
    data: params,
  });
}
export async function EmergencyAddEquip(params) {
  return request(`${baseUrl}/Emergency/AddEquip`, {
    method: 'POST',
    data: params,
  });
}
export async function EmergencyEditEquip(params) {
  return request(`${baseUrl}/Emergency/EditEquip`, {
    method: 'POST',
    data: params,
  });
}
export async function EmergencyDeleteEquip(params) {
  return request(`${baseUrl}/Emergency/DeleteEquip`, {
    method: 'POST',
    data: params,
  });
}
export async function EmergencyQueryEquipCarByID(params) {
  return request(`${baseUrl}/Emergency/QueryEquipCarByID`, {
    method: 'POST',
    data: params,
  });
}
export async function EmergencyQueryEquipOtherByID(params) {
  return request(`${baseUrl}/Emergency/QueryEquipOtherByID`, {
    method: 'POST',
    data: params,
  });
}
export async function EmergencyCommitEquipStatus(params) {
  return request(`${baseUrl}/Emergency/CommitEquipStatus`, {
    method: 'POST',
    data: params,
  });
}
export async function EmergencyQueryEquipCar(params) {
  return request(`${baseUrl}/Emergency/QueryEquipCar`, {
    method: 'POST',
    data: params,
  });
}
export async function EmergencyQueryEquipOther(params) {
  return request(`${baseUrl}/Emergency/QueryEquipOther`, {
    method: 'POST',
    data: params,
  });
}
export async function EmergencyAdEquipCar(params) {
  return request(`${baseUrl}/Emergency/AdEquipCar`, {
    method: 'POST',
    data: params,
  });
}
export async function EmergencyAddEquipOther(params) {
  return request(`${baseUrl}/Emergency/AddEquipOther`, {
    method: 'POST',
    data: params,
  });
}
export async function EmergencyDeleteEquipCar(params) {
  return request(`${baseUrl}/Emergency/DeleteEquipCar`, {
    method: 'POST',
    data: params,
  });
}
export async function EmergencyDeleteEquipOther(params) {
  return request(`${baseUrl}/Emergency/DeleteEquipOther`, {
    method: 'POST',
    data: params,
  });
}
export async function EmergencyEditEquipCar(params) {
  return request(`${baseUrl}/Emergency/EditEquipCar`, {
    method: 'POST',
    data: params,
  });
}
export async function EmergencyEditEquipOther(params) {
  return request(`${baseUrl}/Emergency/EditEquipOther`, {
    method: 'POST',
    data: params,
  });
}
export async function EmergencyQueryEquipByID(params) {
  return request(`${baseUrl}/Emergency/QueryEquipByID`, {
    method: 'POST',
    data: params,
  });
}
/*工程联系单*/
export async function ProjectContactGetCheckedCompany(params) {
  return request(`${baseUrl}/ProjectContactList/GetCheckedCompany`, {
    method: 'POST',
    data: params,
  });
}
export async function ProjectContactAdd(params) {
  return request(`${baseUrl}/ProjectContactList/Add`, {
    method: 'POST',
    data: params,
  });
}
export async function ProjectContactDelete(params) {
  return request(`${baseUrl}/ProjectContactList/Delete`, {
    method: 'POST',
    data: params,
  });
}
export async function ProjectContactEdit(params) {
  return request(`${baseUrl}/ProjectContactList/Edit`, {
    method: 'POST',
    data: params,
  });
}
export async function ProjectContactCommitStatus(params) {
  return request(`${baseUrl}/ProjectContactList/Rollback`, {
    method: 'POST',
    data: params,
  });
}
export async function ProjectContactAuditEdit(params) {
  return request(`${baseUrl}/ProjectContactList/AuditEdit`, {
    method: 'POST',
    data: params,
  });
}